#定义了一个SRC_LIST 变量，包含了该目录下所有的源文件
aux_source_directory(. SRC_LIST)
aux_source_directory(./db DB_LIST)
aux_source_directory(./model MODEL_LIST)
aux_source_directory(./redis REDIS_LIST)

# 指定生成可执行文件 （通过该目录下的所有源文件来生成 可执行文件）
add_executable(ChatServer ${SRC_LIST} ${DB_LIST} ${MODEL_LIST} ${REDIS_LIST})

# 指定可执行文件 链接时 需要依赖的库文件
target_link_libraries(ChatServer muduo_net muduo_base mysqlclient hiredis pthread dl)

# {"msgid":3,"name":"wang wu","password":"666666"}
# {"msgid":1,"id":33,"password":"666666"}
#{"msgid":1,"id":13,"password":"123456"}
# {"msgid":5,"id":33,"from":"li si","to":13,"msg":"hello!!"}
# {"msgid":6,"id":33,"friendid":13} 
